/******************************************************************************
 Copyright (c) 2020-2025 Qualcomm Technologies International, Ltd.
 All Rights Reserved.
 Qualcomm Technologies International, Ltd. Confidential and Proprietary.

******************************************************************************/

#ifndef __GATT_LEAUDIO_SERVER_DB_H
#define __GATT_LEAUDIO_SERVER_DB_H

#define HANDLE_GATT_SERVICE             (0x0001)
#define HANDLE_GATT_SERVICE_END         (0x0008)
#define HANDLE_GATT_SERVICE_CHANGED     (0x0003)
#define HANDLE_GATT_SERVICE_CHANGED_CLIENT_CONFIG (0x0004)
#define HANDLE_GAP_SERVICE              (0x0009)
#define HANDLE_GAP_SERVICE_END          (0x000d)
#define HANDLE_DEVICE_NAME              (0x000b)
#define HANDLE_DEVICE_APPEARANCE        (0x000d)
#define HANDLE_PUBLISHED_AUDIO_CAPABILITIES_SERVICE (0x000e)
#define HANDLE_PUBLISHED_AUDIO_CAPABILITIES_SERVICE_END (0x002f)
#define HANDLE_SINK_PAC_1                 (0x0010)
#define HANDLE_SINK_PAC_CLIENT_CONFIG_1   (0x0011)
#define HANDLE_SINK_PAC_2                 (0x0013)
#define HANDLE_SINK_PAC_CLIENT_CONFIG_2   (0x0014)
#define HANDLE_SINK_PAC_3                (0x0016)
#define HANDLE_SINK_PAC_CLIENT_CONFIG_3  (0x0017)
#define HANDLE_SINK_PAC_VS_APTX           (0x0019)
#define HANDLE_SINK_PAC_CLIENT_CONFIG_VS_APTX (0x001a)
#define HANDLE_SINK_AUDIO_LOCATIONS       (0x001c)
#define HANDLE_SINK_AUDIO_LOCATIONS_CLIENT_CONFIG (0x001d)
#define HANDLE_SOURCE_PAC_1               (0x001f)
#define HANDLE_SOURCE_PAC_CLIENT_CONFIG_1 (0x0020)
#define HANDLE_SOURCE_PAC_2                (0x0022)
#define HANDLE_SOURCE_PAC_CLIENT_CONFIG_2  (0x0023)
#define HANDLE_SOURCE_PAC_3                (0x0025)
#define HANDLE_SOURCE_PAC_CLIENT_CONFIG_3  (0x0026)
#define HANDLE_SOURCE_PAC_VS_APTX           (0x0028)
#define HANDLE_SOURCE_PAC_CLIENT_CONFIG_VS_APTX (0x0029)
#define HANDLE_SOURCE_AUDIO_LOCATIONS   (0x002b)
#define HANDLE_SOURCE_AUDIO_LOCATIONS_CLIENT_CONFIG (0x002c)
#define HANDLE_AVAILABLE_AUDIO_CONTEXTS (0x002e)
#define HANDLE_AVAILABLE_AUDIO_CONTEXTS_CLIENT_CONFIG (0x002f)
#define HANDLE_SUPPORTED_AUDIO_CONTEXTS (0x0031)
#define HANDLE_SUPPORTED_AUDIO_CONTEXTS_CLIENT_CONFIG (0x0032)

#define HANDLE_ASCS_SERVICE             (0x0033)
#define HANDLE_ASCS_SERVICE_END         (0x003c)
#define HANDLE_ASCS_ASE_CHAR_1          (0x0035)
#define HANDLE_ASE_CHAR_CLIENT_CONFIG_1 (0x0036)
#define HANDLE_ASCS_ASE_CHAR_2          (0x0038)
#define HANDLE_ASE_CHAR_CLIENT_CONFIG_2 (0x0039)
#define HANDLE_ASCS_ASE_CONTROL_POINT_CHAR (0x003b)
#define HANDLE_ASCS_ASE_CONTROL_POINT_CHAR_CLIENT_CONFIG (0x003c)

#define HANDLE_VOLUME_CONTROL_SERVICE   (0x003d)
#define HANDLE_VOLUME_CONTROL_SERVICE_END (0x0045)
#define HANDLE_VOLUME_STATE             (0x003f)
#define HANDLE_VOLUME_STATE_CLIENT_CONFIG (0x0040)
#define HANDLE_VOLUME_CONTROL_POINT     (0x0042)
#define HANDLE_VOLUME_FLAGS             (0x0044)
#define HANDLE_VOLUME_FLAGS_CLIENT_CONFIG (0x0045)

#define HANDLE_COORDINATED_SET_IDENTIFICATION_SERVICE (0x0046)
#define HANDLE_COORDINATED_SET_IDENTIFICATION_SERVICE_END (0x0051)
#define HANDLE_SIRK                     (0x0048)
#define HANDLE_SIRK_CLIENT_CONFIG       (0x0049)
#define HANDLE_SIZE                     (0x004b)
#define HANDLE_SIZE_CLIENT_CONFIG       (0x004c)
#define HANDLE_LOCK                     (0x004e)
#define HANDLE_LOCK_CLIENT_CONFIG       (0x004f)
#define HANDLE_RANK                     (0x0051)

#define HANDLE_GENERIC_TELEPHONE_BEARER_SERVICE (0x0052)
#define HANDLE_GENERIC_TELEPHONE_BEARER_SERVICE_END (0x007d)
#define HANDLE_BEARER_PROVIDER_NAME     (0x0054)
#define HANDLE_BEARER_PROVIDER_NAME_CLIENT_CONFIG (0x0055)
#define HANDLE_BEARER_UCI               (0x0057)
#define HANDLE_BEARER_TECHNOLOGY        (0x0059)
#define HANDLE_BEARER_TECHNOLOGY_CLIENT_CONFIG (0x005a)
#define HANDLE_BEARER_URI_PREFIX_LIST   (0x005c)
#define HANDLE_BEARER_URI_PREFIX_LIST_CLIENT_CONFIG (0x005d)
#define HANDLE_SIGNAL_STRENGTH          (0x005e)
#define HANDLE_SIGNAL_STRENGTH_CLIENT_CONFIG (0x005f)
#define HANDLE_SIGNAL_STRENGTH_REPORTING_INTERVAL (0x0061)
#define HANDLE_LIST_CURRENT_CALLS       (0x0063)
#define HANDLE_CURRENT_CALLS_CLIENT_CONFIG (0x0064)
#define HANDLE_CONTENT_CONTROL_ID       (0x0066)
#define HANDLE_STATUS_FLAGS             (0x0068)
#define HANDLE_STATUS_FLAGS_CLIENT_CONFIG (0x0069)
#define HANDLE_INCOMING_CALL_TARGET_BEARER_URI (0x006b)
#define HANDLE_INCOMING_CALL_TARGET_BEARER_URI_CLIENT_CONFIG (0x006c)
#define HANDLE_CALL_STATE               (0x006e)
#define HANDLE_CALL_STATE_CLIENT_CONFIG (0x006f)
#define HANDLE_CALL_CONTROL_POINT       (0x0071)
#define HANDLE_CALL_CONTROL_POINT_CLIENT_CONFIG (0x0072)
#define HANDLE_CALL_CONTROL_POINT_OPCODES (0x0074)
#define HANDLE_TERMINATION_REASON       (0x0076)
#define HANDLE_TERMINATION_REASON_CLIENT_CONFIG (0x0077)
#define HANDLE_INCOMING_CALL            (0x0079)
#define HANDLE_INCOMING_CALL_CLIENT_CONFIG (0x007a)
#define HANDLE_REMOTE_FRIENDLY_NAME     (0x007c)
#define HANDLE_REMOTE_FRIENDLY_NAME_CLIENT_CONFIG (0x007d)

#define HANDLE_BASS_SERVICE             (0x007e)
#define HANDLE_BASS_SERVICE_END         (0x0089)
#define HANDLE_BROADCAST_AUDIO_SCAN_CONTROL_POINT (0x0080)
#define HANDLE_BASS_BROADCAST_RECEIVE_STATE_1 (0x0082)
#define HANDLE_BROADCAST_RECEIVE_STATE_CLIENT_CONFIG_1 (0x0083)
#define HANDLE_BASS_BROADCAST_RECEIVE_STATE_2 (0x0085)
#define HANDLE_BROADCAST_RECEIVE_STATE_CLIENT_CONFIG_2 (0x0086)
#define HANDLE_BASS_BROADCAST_RECEIVE_STATE_3 (0x0088)
#define HANDLE_BROADCAST_RECEIVE_STATE_CLIENT_CONFIG_3 (0x0089)

#define HANDLE_GENERIC_MEDIA_CONTROL_SERVICE (0x008a)
#define HANDLE_GENERIC_MEDIA_CONTROL_SERVICE_END (0x00b2)
#define HANDLE_MEDIA_PLAYER_NAME     (0x008c)
#define HANDLE_MEDIA_PLAYER_NAME_CLIENT_CONFIG (0x008d)
#define HANDLE_MEDIA_PLAYER_ICON_URL           (0x008f)
#define HANDLE_TRACK_CHANGED               (0x0091)
#define HANDLE_TRACK_CHANGED_CLIENT_CONFIG  (0x0092)
#define HANDLE_TRACK_TITLE                 (0x0094)
#define HANDLE_TRACK_TITLE_CLIENT_CONFIG (0x0095)
#define HANDLE_TRACK_DURATION           (0x0097)
#define HANDLE_TRACK_DURATION_CLIENT_CONFIG   (0x0098)
#define HANDLE_TRACK_POSITION                 (0x009a)
#define HANDLE_TRACK_POSITION_CLIENT_CONFIG (0x009b)
#define HANDLE_PLAYBACK_SPEED               (0x009d)
#define HANDLE_PLAYBACK_SPEED_CLIENT_CONFIG (0x009e)
#define HANDLE_SEEKING_SPEED                (0x00a0)
#define HANDLE_SEEKING_SPEED_CLIENT_CONFIG  (0x00a1)
#define HANDLE_PLAYING_ORDER                (0x00a3)
#define HANDLE_PLAYING_ORDER_CLIENT_CONFIG  (0x00a4)
#define HANDLE_PLAYING_ORDER_SUPPORTED      (0x00a6)
#define HANDLE_MEDIA_STATE                  (0x00a8)
#define HANDLE_MEDIA_STATE_CLIENT_CONFIG    (0x00a9)
#define HANDLE_MEDIA_CONTROL_POINT          (0x00ab)
#define HANDLE_MEDIA_CONTROL_POINT_CLIENT_CONFIG (0x00ac)
#define HANDLE_MEDIA_CONTROL_POINT_OP_SUPP (0x00ae)
#define HANDLE_MEDIA_CONTROL_POINT_OP_SUPP_CLIENT_CONFIG (0x00af)
#define HANDLE_MEDIA_CONTENT_CONTROL_ID     (0x00b1)

#define HANDLE_MICROPHONE_CONTROL_SERVICE (0x00b2)
#define HANDLE_MICROPHONE_CONTROL_SERVICE_END (0x00b5)
#define HANDLE_MICS_SERVER_MUTE (0x00b4)
#define HANDLE_MICS_SERVER_MUTE_CLIENT_CONFIG (0x00b5)
#ifdef CSR_BT_GATT_INSTALL_FLAT_DB
#define BLANK_START              (0x00b6)
#define BLANK_END          (0x00ba)
#define BLANK_1               (0x00b8)
#define BLANK_2 (0x00b9)
#define BLANK_3 (0x00ba)


#define HANDLE_DEVICE_INFORMATION_SERVICE (0x00bb)
#define HANDLE_DEVICE_INFORMATION_SERVICE_END (0x00cd)
#define HANDLE_MANUFACTURER_NAME        (0x00bd)
#define HANDLE_MODEL_NUMBER             (0x00bf)
#define HANDLE_SERIAL_NUMBER            (0x00c1)
#define HANDLE_HARDWARE_REVISION        (0x00c3)
#define HANDLE_FIRMWARE_REVISION        (0x00c5)
#define HANDLE_SOFTWARE_REVISION        (0x00c7)
#define HANDLE_SYSTEM_ID                (0x00c9)
#define HANDLE_IEEE_DATA                (0x00cb)
#define HANDLE_PNP_ID                   (0x00cd)

/* Dummy handles for hids to avoid build error in Synergy */
#define HANDLE_HUMAN_INTERFACE_DEVICE_SERVICE     (0x0120)
#define HANDLE_HIDS_REPORT_INPUT_1                (0x0122)
#define HANDLE_HIDS_REPORT_INPUT_REF_1            (0x0123)
#define HANDLE_HIDS_REPORT_INPUT_CLIENT_CONFIG_1  (0x0124)
#define HANDLE_HIDS_REPORT_INPUT_2                (0x0125)
#define HANDLE_HIDS_REPORT_INPUT_REF_2            (0x0126)
#define HANDLE_HIDS_REPORT_INPUT_CLIENT_CONFIG_2  (0x0127)
#define HANDLE_HIDS_REPORT_FEATURE_1              (0x0129)
#define HANDLE_HIDS_REPORT_FEATURE_1_REF          (0x012a)
#define HANDLE_HIDS_REPORT_FEATURE_2              (0x012b)
#define HANDLE_HIDS_REPORT_FEATURE_2_REF          (0x012c)
#define HANDLE_HIDS_REPORT_FEATURE_3              (0x012d)
#define HANDLE_HIDS_REPORT_FEATURE_3_REF          (0x012e)
#define HANDLE_REPORT_MAP                         (0x0130)
#define HANDLE_EXT_REPORT_MAP                     (0x0131)
#define HANDLE_HIDS_INFORMATION                   (0x0133)
#define HANDLE_HIDS_CONTROL_POINT                 (0x0135)
#define HANDLE_HUMAN_INTERFACE_DEVICE_SERVICE_END (0x0135) 

#endif

#define HANDLE_TRANSMIT_POWER_SERVER_SERVICE (0x00ce)
#define HANDLE_TRANSMIT_POWER_SERVER_SERVICE_END (0x00d0)
#define HANDLE_TRANSMIT_POWER_LEVEL     (0x00d0)
#define HANDLE_TRANSPORT_DISCOVERY_SERVICE (0x00d1)
#define HANDLE_TRANSPORT_DISCOVERY_SERVICE_END (0x00da)
#define HANDLE_TRANSPORT_DISCOVERY_CONTROL_POINT (0x00d3)
#define HANDLE_TRANSPORT_DISCOVERY_SERVICE_CLIENT_CONFIG (0x00d4)
#define HANDLE_TRANSPORT_DISCOVERY_BREDR_HANDOVER_DATA (0x00d6)
#define HANDLE_TRANSPORT_DISCOVERY_SIG_DATA (0x00d8)
#define HANDLE_TRANSPORT_DISCOVERY_BREDR_TRANSPORT_BLOCK_DATA (0x00da)

#define HANDLE_TELEPHONY_MEDIA_AUDIO_SERVICE (0x00db)
#define HANDLE_TELEPHONY_MEDIA_AUDIO_SERVICE_END (0x00dd)
#define HANDLE_ROLE (0x00dd)

#define HANDLE_GAMING_AUDIO_SERVICE (0x00de)
#define HANDLE_GAMING_AUDIO_SERVICE_END (0x00e8)
#define HANDLE_GMAS_ROLE (0x00e0)
#define HANDLE_GMAS_UGG_FEATURES (0x00e2)
#define HANDLE_GMAS_UGT_FEATURES (0x00e4)
#define HANDLE_GMAS_BGS_FEATURES (0x00e6)
#define HANDLE_GMAS_BGR_FEATURES (0x00e8)

#define HANDLE_QUALCOMM_SNAPDRAGON_SOUND_SERVICE        (0x00de)
#define HANDLE_QUALCOMM_SNAPDRAGON_SOUND_SERVICE_END    (0x00e5)
#define HANDLE_QUALCOMM_SNAPDRAGON_SOUND_SUPPORT        (0x00e0)
#define HANDLE_USER_DESCRIPTION                         (0x00e2)
#define HANDLE_LOSSLESS_AUDIO                           (0x00e4)
#define HANDLE_LOSSLESS_AUDIO_CLIENT_CONFIG             (0x00e5)

#define HANDLE_RANGING_SERVICE          (0x0001)
#define HANDLE_RANGING_SERVICE_END      (0xffff)
#define HANDLE_RAS_FEATURES             (0x0003)
#define HANDLE_REALTIME_RANGING_DATA    (0x0005)
#define HANDLE_REALTIME_RANGING_DATA_CLIENT_CONFIG (0x0006)
#define HANDLE_ONDEMAND_RANGING_DATA    (0x0008)
#define HANDLE_ONDEMAND_RANGING_DATA_CLIENT_CONFIG (0x0009)
#define HANDLE_RAS_CONTROL_POINT        (0x000b)
#define HANDLE_RAS_CONTROL_POINT_CLIENT_CONFIG (0x000c)
#define HANDLE_RANGING_DATA_READY       (0x000e)
#define HANDLE_RANGING_DATA_READY_CLIENT_CONFIG (0x000f)
#define HANDLE_RANGING_DATA_OVERWRITTEN (0x0011)
#define HANDLE_RANGING_DATA_OVERWRITTEN_CLIENT_CONFIG (0x0012)

#ifdef CSR_BT_GATT_INSTALL_FLAT_DB
#ifdef EXCLUDE_GATT_BATTERY_SERVICE_V1P1
#define HANDLE_BATTERY_SERVICE              (0x00e9)
#define HANDLE_BATTERY_SERVICE_END          (0x00ed)
#define HANDLE_BATTERY_LEVEL                (0x00eb)
#define HANDLE_BATTERY_LEVEL_CLIENT_CONFIG  (0x00ec)
#define HANDLE_BATTERY_LEVEL_PRESENTATION   (0x00ed)
#else
#define HANDLE_BATTERY_SERVICE          (0x00e9)
#define HANDLE_BATTERY_SERVICE_END      (0x0128)
#define HANDLE_BATTERY_LEVEL            (0x00eb)
#define HANDLE_BATTERY_LEVEL_CLIENT_CONFIG (0x00ec)
#define HANDLE_BATTERY_LEVEL_PRESENTATION (0x00ed)
#define HANDLE_BATTERY_LEVEL_STATUS     (0x00ef)
#define HANDLE_BATTERY_LEVEL_STATUS_CLIENT_CONFIG (0x00f0)
#define HANDLE_BATTERY_LEVEL_STATUS_SERVER_CONFIG (0x00f1)
#define HANDLE_ESTIMATED_SERVICE_DATE   (0x00f3)
#define HANDLE_ESTIMATED_SERVICE_DATE_CLIENT_CONFIG (0x00f4)
#define HANDLE_ESTIMATED_SERVICE_DATE_PRESENTATION (0x00f5)
#define HANDLE_BATTERY_CRITICAL_STATUS  (0x00f7)
#define HANDLE_BATTERY_CRITICAL_STATUS_CLIENT_CONFIG (0x00f8)
#define HANDLE_BATTERY_ENERGY_STATUS    (0x00fa)
#define HANDLE_BATTERY_ENERGY_STATUS_CLIENT_CONFIG (0x00fb)
#define HANDLE_EXTERNAL_SOURCE_POWER_PRESENTATION (0x00fc)
#define HANDLE_PRESENT_VOLTAGE_PRESENTATION (0x00fd)
#define HANDLE_AVAILABLE_ENERGY_PRESENTATION (0x00fe)
#define HANDLE_AVAILABLE_BATTERY_CAPACITY_PRESENTATION (0x00ff)
#define HANDLE_CHARGE_RATE_PRESENTATION (0x0100)
#define HANDLE_AVAILABLE_ENERGY_AT_LAST_CHARGE_PRESENTATION (0x0101)
#define HANDLE_BATTERY_ENERGY_STATUS_PRESENTATION_AGGREGATE (0x0102)
#define HANDLE_BATTERY_TIME_STATUS      (0x0104)
#define HANDLE_BATTERY_TIME_STATUS_CLIENT_CONFIG (0x0105)
#define HANDLE_BATTERY_TIME_STATUS_PRESENTATION (0x0106)
#define HANDLE_BATTERY_HEALTH_STATUS    (0x0108)
#define HANDLE_BATTERY_HEALTH_STATUS_CLIENT_CONFIG (0x0109)
#define HANDLE_BATTERY_HEALTH_SUMMARY_PRESENTATION (0x010a)
#define HANDLE_CURRENT_TEMPERATURE_PRESENTATION (0x010b)
#define HANDLE_BATTERY_HEALTH_STATUS_AGGREGATE (0x010c)
#define HANDLE_BATTERY_HEALTH_INFORMATION (0x010e)
#define HANDLE_BATTERY_HEALTH_INFORMATION_CLIENT_CONFIG (0x010f)
#define HANDLE_MIN_DESIGNED_OPERATING_TEMPERATURE_PRESENTATION (0x0110)
#define HANDLE_MAX_DESIGNED_OPERATING_TEMPERATURE_PRESENTATION (0x0111)
#define HANDLE_BATTERY_HEALTH_INFORMATION_AGGREGATE (0x0112)
#define HANDLE_BATTERY_INFORMATION      (0x0114)
#define HANDLE_BATTERY_INFORMATION_CLIENT_CONFIG (0x0115)
#define HANDLE_BATTERY_MANUFACTURE_DATE_PRESENTATION (0x0116)
#define HANDLE_BATTERY_EXPIRATION_DATE_PRESENTATION (0x0117)
#define HANDLE_BATTERY_DESIGNED_CAPACITY_PRESENTATION (0x0118)
#define HANDLE_BATTERY_LOW_ENERGY_PRESENTATION (0x0119)
#define HANDLE_BATTERY_CRITICAL_ENERGY_PRESENTATION (0x011a)
#define HANDLE_NOMINAL_VOLTAGE_PRESENTATION (0x011b)
#define HANDLE_BATTERY_INFORMATION_AGGREGATE (0x011c)
#define HANDLE_MANUFACTURER_NAME_STRING (0x011e)
#define HANDLE_MANUFACTURER_NAME_STRING_CLIENT_CONFIG (0x011f)
#define HANDLE_MANUFACTURER_NAME_STRING_PRESENTATION (0x0120)
#define HANDLE_MODEL_NUMBER_STRING      (0x0122)
#define HANDLE_MODEL_NUMBER_STRING_CLIENT_CONFIG (0x0123)
#define HANDLE_MODEL_NUMBER_STRING_PRESENTATION (0x0124)
#define HANDLE_SERIAL_NUMBER_STRING     (0x0126)
#define HANDLE_SERIAL_NUMBER_STRING_CLIENT_CONFIG (0x0127)
#define HANDLE_SERIAL_NUMBER_STRING_PRESENTATION (0x0128)

#endif /* EXCLUDE_GATT_BATTERY_SERVICE_V1P1 */

#endif /* CSR_BT_GATT_INSTALL_FLAT_DB */

#endif

/* End-of-File */
